package cn.bellychang.chainofresponsibility.demo01;

/**
 * 使用静态内部类
 * @author ChangLiang
 * @date 2020/4/14
 */
public class HelpMessageSingleton {

    private HelpMessageSingleton(){}

    private String helpMessage;

    private static class Holder{
        private static HelpMessageSingleton instance = new HelpMessageSingleton();
    }

    public static HelpMessageSingleton getInstance() {
        return Holder.instance;
    }

    public String getHelpMessage() {
        return helpMessage;
    }

    public void setHelpMessage(String helpMessage) {
        this.helpMessage = helpMessage;
    }
}
